<template>
  <div id="app" class="app-main" :style="{ height: bodyHeight + 'px' }" :theme="theme">
    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      bodyHeight: 0
    };
  },
  computed: {
    theme() {
      return this.$store.state.other.theme;
    }
  },
  mounted() {
    this.bodyHeight=document.documentElement.clientHeight
  }
};
</script>

<style>
/* html,body {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  overflow: hidden;
}
.app-main {
  width: 100%;
  height: 100%;
} */
</style>
